﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ACAPM.CommonClass;
using System.Xml;
using System.Xml.Linq;


public partial class _Default : System.Web.UI.Page
{
    #region Page Events
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                
                GetDailyPromise();
                
            }
        }
        catch (Exception ex)
        {

        }
    }

    #endregion

    #region Protected Methods

    /// <summary>
    /// To bind daily promise
    /// </summary>
    protected void GetDailyPromise()
    {
        try
        {
            string todaysVerse = string.Empty;
            todaysVerse = StringHelper.GetDailyVerse(Convert.ToString(DateTime.Now.Date.ToShortDateString()));
            ltrVerse.Text = todaysVerse.Split('|')[0] ;
            ltrVerseRef.Text = todaysVerse.Split('|')[1];
        }
        catch(Exception ex)
        {

        }
    }

    

    #endregion
}
